﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/MasterPage.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="WebForm_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:DataList ID="DataList1" runat="server" DataSourceID="SqlDataSource" RepeatColumns="5" BorderStyle="Double" GridLines="Both" Width="100%">
        <ItemTemplate>
            <asp:Image ID="HinhAnhLabel" runat="server" ImageUrl='<%# Eval("HinhAnh") %>' Width="100px" Height="100px" />
            <br />
            <asp:Label ID="TenSachLabel" runat="server" Text='<%# Eval("TenSach") %>' />
            <br />
            Năm
            <asp:Label ID="NamXuatBanLabel" runat="server" Text='<%# Eval("NamXuatBan") %>' />
            <br />
            Lần Xem:
            <asp:Label ID="LanXemLabel" runat="server" Text='<%# Eval("LanXem") %>' />
            <br />
            Gia:
            <asp:Label ID="GiaLabel" runat="server" Text='<%# Eval("Gia") %>' />
            <br />
            TenNhaXuatBan:
            <asp:Label ID="TenNhaXuatBanLabel" runat="server" Text='<%# Eval("TenNhaXuatBan") %>' />
            <br />
<br />
        </ItemTemplate>
    </asp:DataList>
    <asp:SqlDataSource ID="SqlDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnectionString %>" ProviderName="<%$ ConnectionStrings:ConnectionString.ProviderName %>" SelectCommand="SELECT Sach.HinhAnh, Sach.NamXuatBan, Sach.TenSach, Sach.LanXem, Gia.Gia, NhaXuatBan.TenNhaXuatBan FROM ((Sach INNER JOIN Gia ON Sach.MSSach = Gia.MSSach) INNER JOIN NhaXuatBan ON Sach.MSNhaXuatBan = NhaXuatBan.MSNhaXuatBan)"></asp:SqlDataSource>
    </asp:Content>

